package com.example.yiqiuser.service;

import com.example.yiqiuser.entity.PtFavorite;
import com.example.yiqiuser.util.Page;
import com.github.pagehelper.PageInfo;


/**
 * @ fileName:PtFavoriteService
 * @ description:
 * @ author:chen
 * @ createTime:2023/3/31 14:45
 * @ version:1.0.0
 */
public interface PtFavoriteService {
    /**
     * 分页查询
     * @param page
     * @return
     */
    PageInfo queryByParam(Page<PtFavorite> page);

    /**
     * 添加
     * @param ptFavorite
     * @return
     */
    int add(PtFavorite ptFavorite);

    /**
     * 更新
     * @param ptFavorite
     * @return
     */
    int  update(PtFavorite ptFavorite);

    /**
     * 跟据Id删除
     * @param id
     * @return
     */
    int deleteById(Integer id);

    /**
     * 跟据objid删除
     * @param objid
     * @return
     */
    int deleteByObjid(String objid);
}
